package com.xbongbong.paas.business.rule;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.businessrulelog.pojo.BusinessRuleLogSaveDTO;
import com.xbongbong.pro.businessrulelog.pojo.dto.BusinessRuleLogListDTO;
import com.xbongbong.pro.businessrulelog.pojo.vo.BusinessRuleLogListVO;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2020/5/9 16:29
 * @since v1.0
 */
public interface BusinessRuleLogService {

    /**
     * 记录日志
     * @param operationDTO
     * @param executeResult 执行的结果
     * @param executeNum 执行的数量
     * @param consumer 执行成功和失败 0：失败； 1：成功
     * @throws XbbException
     */
    void log(BusinessRuleLogSaveDTO operationDTO, Integer executeResult, Integer executeNum, Integer consumer) throws XbbException;

    /**
     * 更新
     * @param logId
     * @param corpid
     * @param consumer
     * @throws XbbException
     */
    void update(Long logId, String corpid, Integer consumer) throws XbbException;

    /**
     * 获取执行日志列表
     * @param businessRuleLogListDTO
     * @return
     * @throws XbbException
     */
    BusinessRuleLogListVO list(BusinessRuleLogListDTO businessRuleLogListDTO) throws XbbException;
}
